package vip.sweet.biz.modular.expert.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import vip.sweet.biz.modular.expert.params.BizExpertSpecialtiesAddParams;
import vip.sweet.biz.modular.expert.service.BizExpertSpecialtiesService;
import vip.sweet.common.enums.ResponseEnum;
import vip.sweet.common.response.CommonResponse;

/**
 * @author ASUS
 * @Date 2025/10/5 11:09
 * @Descripition
 */
@RestController
@RequestMapping("/biz/expertSpecialties")
@Tag(name = "专家专长控制器")
public class BizExpertSpecialtiesController {
    @Resource
    private BizExpertSpecialtiesService bizExpertSpecialtiesService;
    @PostMapping("/add")
    @Operation(summary = "添加专家专长接口")
    public CommonResponse add(@RequestBody @Validated BizExpertSpecialtiesAddParams bizExpertSpecialtiesAddParams) {
        return bizExpertSpecialtiesService.add(bizExpertSpecialtiesAddParams) ? CommonResponse.success("添加成功") : CommonResponse.error(ResponseEnum.ERROR);
    }
}
